//
//  TPHomeModel.m
//  Yimei
//
//  Created by xiaowu xiaowu on 2017/11/15.
//  Copyright © 2017年 xiaowu xiaowu. All rights reserved.
//

#import "TPHomeModel.h"
@interface TPHomeModel()
@end
@implementation TPHomeModel
+(TPHomeModel *)getHomeModelWithName:(NSString *)name price:(CGFloat)price logoPath:(NSString *)logoPath number:(NSInteger)number array:(NSArray *)array{
    
    TPHomeModel *model = [[TPHomeModel alloc]init];
    model.goods_price = [NSString stringWithFormat:@"%.2f",price];
    model.goods_image = logoPath;
    model.appoint_number = number;
    model.array = array;
    model.goods_name = name;
    
    return model;
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
}
-(void)setNilValueForKey:(NSString *)key{
    
}
-(void)setGoods:(NSDictionary *)goods{
    _goods = goods;
    [self setValuesForKeysWithDictionary:goods];
}
-(NSMutableArray *)homes{
    
    if(!_homes){
        
         _homes = [NSMutableArray new];
        TPHomeModel *model9 = [TPHomeModel getHomeModelWithName:@"【开内眼角】无创开眼角精细无痕，形态自然，免费设计" price:6800.0 logoPath:@"http://img2.soyoung.com/post/20170801/6/20170801163513109_400.jpg" number:892 array:@[@"自然",@"无痕",@"气质"]];
        TPHomeModel *model1 = [TPHomeModel getHomeModelWithName:@"【鼻部】公立三甲主任打造膨体鼻综合，健康，自然，中国好鼻子" price:15000.0 logoPath:@"http://img2.soyoung.com/post/20171018/6/20171018114940967_400.jpg" number:349 array:@[@"无痕",@"气质"]];
        TPHomeModel *model2 = [TPHomeModel getHomeModelWithName:@"【吸脂】【单部位减脂】360°立体精细化减脂 完美雕刻曲线" price:680.0 logoPath:@"http://img2.soyoung.com/post/20171115020171115102815252367893990_400.jpg" number:382 array:@[@"减肥",@"魅力"]];
        TPHomeModel *model3 = [TPHomeModel getHomeModelWithName:@"【自体脂肪填充】纳米自体脂肪丰胸，签约效果，上千预约量，一次增大" price:9380.0 logoPath:@"http://img2.soyoung.com/post/20171111420171111172709890692912401_400.jpg" number:2342 array:@[@"丰胸",@"减肥"]];
        TPHomeModel *model4 = [TPHomeModel getHomeModelWithName:@"【自体软骨隆鼻】王院长亲诊~取自身，用自身，安全无排异，不惧揉捏，全耳软骨真鼻~" price:3211 logoPath:@"http://img2.soyoung.com/post/20171114220171114161914911851644956_400.jpg" number:124 array:@[@"隆鼻",@"软骨"]];
        
       
        [_homes addObject:model9];
        [_homes addObject:model1];
        [_homes addObject:model2];
        [_homes addObject:model3];
        [_homes addObject:model4];
  }
    return _homes;
}

@end
